package com.ruoyi.subject.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * ;
 *
 * @author : http://www.chiner.pro
 * @date : 2025-2-5
 */
@Data
@ToString
@NoArgsConstructor
@ApiModel(value = "专题目标关联关系表", description = "")
public class SubjectTarget implements Serializable, Cloneable {
    /**
     *
     */
    @TableId(type = IdType.NONE)
    @ApiModelProperty(value = "", notes = "")
    private Long id;
    /**
     * 专题id
     */
    @ApiModelProperty(value = "专题id", notes = "")
    private Long subjectId;
    /**
     * 目标类型
     */
    @ApiModelProperty(value = "目标类型(1舰船 2飞机 3雷达 4导弹 5固定设施 6人物 7事件)", notes = "")
    private Integer targetType;
    /**
     * 目标类型
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "目标名称", notes = "")
    private String targetName;
    /**
     * 目标id
     */
    @ApiModelProperty(value = "目标id", notes = "")
    private Long targetId;

    @TableField(exist = false)
    @ApiModelProperty(value = "没使用到，但前端需要传递", notes = "")
    private Long value;

    public SubjectTarget(Long id, Long subjectId, Integer targetType, Long targetId) {
        this.id = id;
        this.subjectId = subjectId;
        this.targetType = targetType;
        this.targetId = targetId;
    }
}